#!/usr/bin/env python
# -*- coding: utf-8 -*-

from optparse import OptionParser

def main():
    '''
    -n/--name | the person's name
    -a/--age | the person's age
    -j/--job | the psrson's job
    '''
    parser = OptionParser()
    parser.add_option('-n', '--name', dest='person_name', help="person's name", default='person1')
    parser.add_option('-a','--age', default=30, help="person's age")
    parser.add_option('-j','--job',default='software engineer', help="person's job")
    options, args = parser.parse_args()

    print options
    print args
    print 'Hello %s' %options.person_name
    print 'age is %d' %int(options.age)
    print 'job is %s' %options.job
    
    
if __name__=='__main__':
    main()
                      
                      
